<extend name="Public/base" />
<block name="main">
	<div class="container-fluid">
		<div class="row">
			<div class="col-lg-12">
				<h1 class="page-header">科目列表</h1>
			</div>
			<!-- /.col-lg-12 -->
		</div>

		<div class="row">
			<div class="col-lg-12">
				<!--
				<div class="panel panel-default">
					<div class="panel-heading"> Basic Form Elements </div>
				</div>
				-->
				<div class="panel-body">
					<div class="row">
						<div class="col-lg-12">
							<!-- /.row -->
							<div class="row">
								<div class="col-lg-12">
									<div class="panel panel-default">
										<!--
										<div class="panel-heading">
											DataTables Advanced Tables
										</div>
										-->
										<!-- /.panel-heading -->
										<div class="panel-body">
											<div class="dataTable_wrapper">
												<table class="table table-striped table-bordered table-hover" id="dataTables-example">
													<thead>
														<tr>
															<th>序号</th>
															<volist name="input" id="vo">
															<if condition="in_array($vo['field'],$showcol)">
															<th>{$vo['comment']|comment=###,'name'}</th>
															</if>
															</volist>
															<th>操作</th>
														</tr>
													</thead>
													<tbody>
														<volist name="list" id="list">
														<tr class="gradeC">
															<td>{$key+1+$start}</td>
															<volist name="columns" id="vo" key="k">
															<if condition="in_array($vo['field'],$showcol)">
															<td>{$list[$vo['field']]}</td>
															</if>
															</volist>
															<td>
																<a href="{:U($controller.'/del',array('id'=>$list['id']))}" onclick="return confirm('是否确定删除？')">删除</a>
																<a href="{:U($controller.'/edit',array('id'=>$list['id']))}">修改</a>
															</td>
														</tr>
														</volist>
														<if condition="$k">
														<tr>
															<td colspan="{$k+1}">
																<div class="page">{$page}</div>
															</td>
														</tr>
														</if>
													</tbody>
												</table>
											</div>
										</div>
										<!-- /.panel-body -->
									</div>
									<!-- /.panel -->
								</div>
								<!-- /.col-lg-12 -->
							</div>
							<!-- /.row -->
						</div>
					</div>
				</div>
			</div>
			<!-- /.col-lg-12 -->
		</div>
		<!-- /.row -->
	</div>
</block>
